import Layout from '@/layouts/Layout/index.vue'

export const route = {
  path: '/home',
  name: 'home',
  component: Layout,
  meta: {
    name: '首页',
    icon: 'HomeFilled',
  },
  redirect: '/home/dashboard',
  children: [
    {
      path: 'dashboard',
      name: 'dashboard',
      component: () => import('../../views/Dashboard/index.vue'),
      meta: {
        name: '看板',
        icon: 'TrendCharts',
      },
    },
    {
      path: 'detail',
      name: 'detail',
      component: () => import('../../views/Detail/index.vue'),
      meta: {
        name: '详情',
        icon: 'TrendCharts',
        currentActiveMenu: '/home/dashboard',
      },
    },
    {
      path: 'welcome',
      name: 'welcome',
      component: () => import('../../views/Welcome/index.vue'),
      meta: {
        name: '欢迎',
        icon: 'TrendCharts',
      },
    },
  ],
}
